﻿@using LogManager.Helpers
@functions{
    public string Selected(string controller)
    {
        return Url.HasController(controller) ? "selected" : string.Empty;
    }    
}

<ul id="menu">
    <li class="@Selected("Dashboard")">@Html.ActionLink("Dashboard", "Index", "Dashboard")</li>
    <li class="@(Selected("Log") + Selected("Event"))">@Html.ActionLink("Logs", "Index", "Log")</li>
    <li class="@Selected("Error")">@Html.ActionLink("Error Center","Index","Error")</li>
    <li class="@Selected("Statistic")">@Html.ActionLink("Statistic", "EventsPerDay", "Statistic")</li>
    <li class="@Selected("Filter")">@Html.ActionLink("Filter", "Index", "Filter")</li>   
    <li class="@Selected("Import")">@Html.ActionLink("Import", "Index", "Import")</li>   
    <li class="@Selected("Help")">@Html.ActionLink("Help", "Index", "Help")</li>   
</ul>